/*---------------------------------------------------------------------------------------------
 *  Copyright (c) Microsoft Corporation. All rights reserved.
 *  Licensed under the MIT License. See License.txt in the project root for license information.
 *--------------------------------------------------------------------------------------------*/

.monaco-resource-viewer:focus {
	outline: none !important;
}

.monaco-resource-viewer {
	padding: 5px 0 0 10px;
	box-sizing: border-box;
}

.monaco-resource-viewer.image {
	padding: 0;
	background-position: 0 0, 8px 8px;
	background-size: 16px 16px;
	display: flex;
	box-sizing: border-box;
}

.vs .monaco-resource-viewer.image {
	background-image:
		linear-gradient(45deg, rgb(230, 230, 230) 25%, transparent 25%, transparent 75%, rgb(230, 230, 230) 75%, rgb(230, 230, 230)),
		linear-gradient(45deg, rgb(230, 230, 230) 25%, transparent 25%, transparent 75%, rgb(230, 230, 230) 75%, rgb(230, 230, 230));
}

.vs-dark .monaco-resource-viewer.image {
	background-image:
		linear-gradient(45deg, rgb(20, 20, 20) 25%, transparent 25%, transparent 75%, rgb(20, 20, 20) 75%, rgb(20, 20, 20)),
		linear-gradient(45deg, rgb(20, 20, 20) 25%, transparent 25%, transparent 75%, rgb(20, 20, 20) 75%, rgb(20, 20, 20));
}

.monaco-resource-viewer img.pixelated {
	image-rendering: pixelated;
}

.monaco-resource-viewer img.scale-to-fit {
	max-width: calc(100% - 20px);
	max-height: calc(100% - 20px);
	object-fit: contain;
}

.monaco-resource-viewer img {
	margin: auto;
}

.monaco-resource-viewer.zoom-in {
	cursor: zoom-in;
}

.monaco-resource-viewer.zoom-out {
	cursor: zoom-out;
}

.monaco-resource-viewer .embedded-link,
.monaco-resource-viewer .embedded-link:hover {
	cursor: pointer;
	text-decoration: underline;
	margin-left: 5px;
}
